package com.wxq.koland.xiaoliscan.bean;

/**
 * Created by wxq on 2020/3/6.
 * Love Life ~
 */

public class UserInfo {


    /**
     * code : 1
     * msg : 数据获取成功
     * data : {"username":"张三","phone":"13611112222","sex":1,"count":1,"temperature":""}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode () {
        return code;
    }

    public void setCode (int code) {
        this.code = code;
    }

    public String getMsg () {
        return msg;
    }

    public void setMsg (String msg) {
        this.msg = msg;
    }

    public DataBean getData () {
        return data==null?new DataBean() : data;
    }

    public void setData (DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * username : 张三
         * phone : 13611112222
         * sex : 1
         * count : 1
         * temperature :
         */

        private String username;
        private String phone;
        private int sex;
        private int count;
        private String temperature;

        public String getUsername () {
            return username==null?"":username;
        }

        public void setUsername (String username) {
            this.username = username;
        }

        public String getPhone () {
            return phone==null?"":phone;
        }

        public void setPhone (String phone) {
            this.phone = phone;
        }

        public int getSex () {
            return sex;
        }

        public void setSex (int sex) {
            this.sex = sex;
        }

        public int getCount () {
            return count;
        }

        public void setCount (int count) {
            this.count = count;
        }

        public String getTemperature () {
            return temperature==null?"":temperature;
        }

        public void setTemperature (String temperature) {
            this.temperature = temperature;
        }

        @Override
        public String toString () {
            return "DataBean{" +
                    "username='" + username + '\'' +
                    ", phone='" + phone + '\'' +
                    ", sex=" + sex +
                    ", count=" + count +
                    ", temperature='" + temperature + '\'' +
                    '}';
        }
    }

//    @Override
//    public String toString () {
//        return "UserInfo{" +
//                "code=" + code +
//                ", msg='" + msg + '\'' +
//                ", data=" + data.toString() +
//                '}';
//    }
}
